@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    width: 1080px;
    height: 3848px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #0a0e1a;
    color: white;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }
}


.min-h-screen {
  width: 1080px;
  height: 3848px;
}

@layer utilities {
  /* 毛玻璃效果 */
  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .glass-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .glass-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
  }

  /* 卡片光效 */
  .card-glow {
    position: relative;
  }

  .card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
      transparent, 
      rgba(0, 255, 255, 0.1), 
      transparent, 
      rgba(0, 255, 255, 0.1), 
      transparent
    );
    border-radius: 26px;
    z-index: -1;
    animation: card-glow-animation 4s ease-in-out infinite;
  }

  /* 发光线条 */
  .glow-line {
    position: relative;
    animation: glow-pulse 3s ease-in-out infinite;
  }

  .glow-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    bottom: -2px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.7;
  }

  /* 水波 */
.wave-content{
    display: flex;
    align-items: end;
    flex-direction: column;
    align-items: end;
    justify-content: end;
}  
.wave {
  width: 100%;
  height: 200px;
  --c: #2196f3;
  --w1: radial-gradient(100% 57% at top, #0000 100%, var(--c) 100.5%) no-repeat;
  --w2: radial-gradient(100% 57% at bottom, var(--c) 100%, #0000 100.5%)
    no-repeat;
  background: var(--w1), var(--w2), var(--w1), var(--w2);
  background-position-x: -200%, -100%, 0%, 100%;
  background-position-y: 100%;
  background-size: 50.5% 100%;
  animation: m 1s infinite linear;
  opacity:0.5;
}
.wave-bg{
  width:100%; 
    background: rgb(0 0 0 / 54%);
    opacity: 0.5; 
}

@keyframes m {
  0%  {background-position-x:-200%, -100%, 0%, 100%}
  100%{background-position-x:  0%, 100%, 200%, 300%}
}

  /* 河水背景效果 */
  .water-background {
    background: linear-gradient(180deg, 
      rgba(30, 58, 138, 0.1) 0%,
      rgba(29, 78, 216, 0.2) 25%,
      rgba(37, 99, 235, 0.3) 50%,
      rgba(59, 130, 246, 0.4) 75%,
      rgba(96, 165, 250, 0.5) 100%
    );
  }

  /* 多层水波效果 */
  .wave-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 40%;
    opacity: 0.1;
    animation: water-wave linear infinite;
  }

  .wave-layer-1 {
    top: 60%;
    left: -50%;
    background: linear-gradient(45deg, #33cfff, #0eaffe);
    animation-duration: 8s;
  }

  .wave-layer-2 {
    top: 65%;
    left: -60%;
    background: linear-gradient(45deg, #0eaffe, #0f7ea4);
    animation-duration: 12s;
    animation-direction: reverse;
  }

  .wave-layer-3 {
    top: 70%;
    left: -55%;
    background: linear-gradient(45deg, #0f7ea4, #1e40af);
    animation-duration: 15s;
    opacity: 0.05;
  }

  .wave-layer-4 {
    top: 75%;
    left: -45%;
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    animation-duration: 20s;
    animation-direction: reverse;
    opacity: 0.03;
  }

  /* 警告边框动画 */
  .warning-border-pulse {
    animation: warning-border 2s ease-in-out infinite;
  }

  .warning-border-pulse-inner {
    animation: warning-border-inner 1.5s ease-in-out infinite;
    animation-delay: 0.5s;
  }


  /* 粒子浮动 */
  .particle-float {
    animation: particle-rise linear infinite;
  }

  /* 光线扫描 */
  .light-sweep {
    animation: light-sweep 8s ease-in-out infinite;
  }

  /* 垂直文字 */
  .writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  /* 文字阴影效果 */
  .text-shadow {
    text-shadow: 0 0 10px currentColor;
  }
}

/* 动画定义 */
@keyframes water-wave {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes card-glow-animation {
  0%, 100% { 
    background: linear-gradient(45deg, 
      transparent, 
      rgba(0, 255, 255, 0.1), 
      transparent, 
      rgba(0, 255, 255, 0.1), 
      transparent
    );
  }
  50% { 
    background: linear-gradient(45deg, 
      rgba(0, 255, 255, 0.1), 
      transparent, 
      rgba(0, 255, 255, 0.2), 
      transparent, 
      rgba(0, 255, 255, 0.1)
    );
  }
}

@keyframes glow-pulse {
  0%, 100% { 
    opacity: 1;
    filter: brightness(1);
  }
  50% { 
    opacity: 0.8;
    filter: brightness(1.2);
  }
}

@keyframes warning-border {
  0%, 100% { 
    opacity: 1;
    box-shadow: 
      0 0 20px currentColor,
      inset 0 0 20px currentColor;
  }
  50% { 
    opacity: 0.3;
    box-shadow: 
      0 0 40px currentColor,
      inset 0 0 40px currentColor;
  }
}

@keyframes warning-border-inner {
  0%, 100% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 0.2;
    transform: scale(1.02);
  }
}

@keyframes corner-pulse {
  0% { 
    opacity: 0.1;
    transform: scale(1);
  }
  100% { 
    opacity: 0.4;
    transform: scale(1.2);
  }
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0) rotate(0deg);
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1) rotate(36deg);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1) rotate(324deg);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(0) rotate(360deg);
  }
}

@keyframes light-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.7);
}

/* 响应式字体适配3840px高度 */
@media (min-height: 3000px) {
  .text-8xl { font-size: 8rem; line-height: 1; }
  .text-7xl { font-size: 6rem; line-height: 1; }
  .text-6xl { font-size: 4.5rem; line-height: 1; }
  .text-5xl { font-size: 3.5rem; line-height: 1; }
  .text-4xl { font-size: 2.5rem; line-height: 1.2; }
  .text-3xl { font-size: 2rem; line-height: 1.2; }
}

@media (min-height: 3840px) {
  .text-8xl { font-size: 10rem; line-height: 1; }
  .text-7xl { font-size: 7.5rem; line-height: 1; }
  .text-6xl { font-size: 5.5rem; line-height: 1; }
  .text-5xl { font-size: 4rem; line-height: 1; }
  .text-4xl { font-size: 3rem; line-height: 1.2; }
  .text-3xl { font-size: 2.25rem; line-height: 1.2; }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1080px) and (min-height: 3840px) {
  .py-20 { padding-top: 6rem; padding-bottom: 6rem; }
  .py-16 { padding-top: 5rem; padding-bottom: 5rem; }
  .px-16 { padding-left: 4rem; padding-right: 4rem; }
  .mb-20 { margin-bottom: 6rem; }
  .mb-16 { margin-bottom: 5rem; }
  .mb-12 { margin-bottom: 4rem; }
  .gap-16 { gap: 5rem; }
  .gap-12 { gap: 4rem; }
  .p-16 { padding: 5rem; }
  .p-12 { padding: 4rem; }
  .p-8 { padding: 2.5rem; }
}

.pr-40{
  padding-right:15rem
}

.flag-icon{
  margin-left:-4rem;
  font-weight: bold;
}



.cockpit-warning {
  margin: 0;
  min-height: 100vh; 
  animation: cockpit-warning-pulse 1.5s infinite;
}

@keyframes cockpit-warning-pulse {
  0% {
    box-shadow: inset 0 0 0 0 rgba(255, 165, 0, 0.5);
  }
  50% {
    box-shadow: inset 0 0 100px 40px rgba(255, 165, 0, 0.7);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 165, 0, 0.5);
  }
}

.cockpit-red {
  margin: 0;
  min-height: 100vh; 
  animation: cockpit-red-pulse 1.5s infinite;
}

@keyframes cockpit-red-pulse {
  0% {
    box-shadow: inset 0 0 0 0 rgba(255, 0, 0, 0.8);
  }
  50% {
    box-shadow: inset 0 0 100px 40px rgba(255, 0, 0, 0.5);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 0, 0, 0.8);
  }
}


.footer-dot{
    bottom: 5rem;
    text-align: center;
    width: 100%;
    z-index: 99999;
}

.pl-15{
  padding-right: 13rem;
}

.site-bg{
  background: rgb(21 22 18 / 65%) !important;
}

.site-bg2{
  background: rgb(21 22 18 / 50%) !important;
}

.h-28{
  height:28rem;
}



  /* 自定义滚动条 */
  .custom-scrollbar::-webkit-scrollbar {
    width: 8px;
  }

  .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* 预警站点滚动动画 */
  @keyframes warning-scroll {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }
 
  /* 预警站点滚动动画 */
  .warning-scroll-auto {
    animation: warning-scroll 15s linear infinite;
  }

  .warning-scroll-auto:hover {
    animation-play-state: paused;
  }